package com.example.novelweb.constant;

/**
 * 用户常量
 *
 
 */
public interface UserConstant {

    String HEADER_AUTH = "Authorization";

    String SERVER_URL_PREFIX = "/api/";

    /**
     * 内部存储地址 "src/main/resources/static/images/"
     * 外部访问 "/api/" + "images/" + <fileName>
     * */
    String IMG_RES_PATH = "res/images/";
    long MAX_IMG_SIZE = 3 * 1024 * 1024;

    String USER_DEFAULT_AVATAR = SERVER_URL_PREFIX + "images/avatar_default.png";

    String NOVEL_DEFAULT_COVER = SERVER_URL_PREFIX + "images/cover_default.png";


    // 本地存储地址 "res/novels/"
    // 外部访问地址 "/api/" + CHAPTER_RES_TXT_PATH
    // 具体chapter外部访问地址 "/api/" + CHAPTER_RES_TXT_PATH + <novelId> + <fileName>
    String CHAPTER_RES_TXT_PATH = "res/novels/";



    //  region 权限
    String DEFAULT_ROLE = "none";
    String ADMIN_ROLE = "admin";
    String BAN_ROLE = "ban";
    // endregion
}
